##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 13\13.1587 - No Title.py
# Description: No Title
##############################################################################
def set_background_color(self):
color = askcolor(title="Background color")
self.background_color = color[1] or ""
self.bbackground.config(
text="Transparent" if self.background_color == "" else "",
background=self.background_color or "SystemButtonFace")
def set_foreground_color(self):
color = askcolor(title="Foreground color")
if color[1]:
self.foreground_color = color[1]
self.bforeground.config(background=self.foreground_color)